/**
 * 
 */
package com.owen.he.jee.vo;

import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * 分页查询参数应当继承的Class
 * @author tanghuabo
 */
@Data
@EqualsAndHashCode(callSuper=false)
public class LoadmoreParam {
	int pageSize = 100;
	private int size;
	int currentPage = 1;
	private int page;

	public int getPageSize() {
		return size==0 ? pageSize : size;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getCurrentPage() {
		return page==0 ? currentPage : page;
	}
}